package com.example.leetcode.array;

import com.example.leetcode.array.common.ArrayUtils;

import java.util.Arrays;

class Solution280 {
    public void wiggleSort(int[] nums) {
//        ArrayUtils.wiggleSort(nums);
//        ArrayUtils.wiggleSort2(nums);
        ArrayUtils.wiggleSort3(nums);
    }
}

public class leetcode280 {
    public static void main(String[] args) {
        Solution280 solution280 = new Solution280();
        test01(solution280);
        test02(solution280);
    }

    private static void test01(Solution280 solution280) {
        int[] nums = {3, 5, 2, 1, 6, 4};
        solution280.wiggleSort(nums);
        System.out.println(Arrays.toString(nums));
    }

    private static void test02(Solution280 solution280) {
        int[] nums = {1, 2, 3};
        solution280.wiggleSort(nums);
        System.out.println(Arrays.toString(nums));
    }
}
